package com.ssy.lingxi.report.repository.report;

import com.ssy.lingxi.report.entity.report.MemberMobileMenuDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 会员手机端菜单类
 * @author 伍将
 * @date 2021/3/3
 * @version 2.0.0
 */
public interface MemberMobileMenuRepository extends JpaRepository<MemberMobileMenuDO, Long>, JpaSpecificationExecutor<MemberMobileMenuDO> {

    /**
     * 根据会员id与会员角色id查询会员手机端菜单
     * @author 伍将
     * @date 2021/3/3
     * @param memberId: 会员id
     * @param roleId: 会员角色id
     * @return 手机端菜单
     **/
    MemberMobileMenuDO findByMemberIdAndRoleId(Long memberId, Long roleId);
}
